Repository navigation
fix(plugin-form): the master-detail dialog Save bar sits at the dialog bottom; section nav follows a scroll inside the click hold - #34848
Merged
objectstack-fleet[bot] merged 4 commits intoNov 17, 2026
Conversation
…og bottom; section nav re-measures after the click hold Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
…light after the click hold Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
… the section highlight Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
This was referenced Nov 17, 2026
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB L1 review · 2026-11-17T14:01ZL1: ACCEPT Read at this exact head: the 7 files (+349/−32), the body, card #34819, claim 6948244346, amendment 6949796831 and os-dev-report 6949743942. Must-fixNone. Should-fixNone. Checklist
Notes
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs Landing · area o3-B · 2026-11-17T14:41Z
State change: ready for review + auto-merge (merge queue). Card #34819 closes on merge via |
objectstack-fleet
Bot
deleted the
claude/issue-34819-subform-dialog-footer-gap
branch
November 17, 2026 15:55
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs
Fixes #34819
Clause-②: no
Metadata-protocol: none
维护者速读
ui/packages/plugin-form/src/MasterDetailForm.tsx(根节点分 frame / flow 两种布局的那段)、ModalForm.tsx(子表分支改用MasterDetailFrameContext)、FormSectionNav.tsx(保持期结束重算与「到底时保留点击的分组」)。What changes
ModalForm's master-detail arm no longer wrapsMasterDetailFormin an overflow scroller. It hands the form a frame through a new package-internal context,MasterDetailFrameContext(masterDetailFrame.ts, not re-exported from the package index; no prop or schema key added to any exported type). With a frame,MasterDetailFormlays out as a flex column: its body (header form, line items, row editor) scrolls in its own box (md-form-body, the flat arm's body gutters and@container), and the action bar is theshrink-0row below it, outside the scrolled content, with the flat arm footer's padding. Without a frame (the drawer, the record page) the form renders exactly the old DOM with the sticky bar. The form still owns its Save (ADR-0035 Decision §6); the dialog draws no footer, and the close guard is unchanged.FormSectionNavmeasures once more when the 800 ms click hold ends, so a scroll that landed inside the hold is followed. At the very bottom of a short tail, the section the last click picked keeps the highlight while its heading is in view (otherwise the last section, as before); the click preference is dropped as soon as a measure finds the form away from the bottom.Why
Measured live (showcase on this branch's base
c513d62a, isolated backend plus the Console dev server, Chromium at 1280×900). Showcase has no master-detail object whose create dialog draws two or more sections, so for the reproduction theshowcase_invoiceheader fields were given three field groups in an uncommitted local edit (restored afterwards; not in this diff). That dialog measured 45..855, the same box as the card's.sticky bottom-0inside the dialog body scroller (py-4). Sticky stops at the scroller's content edge, so the bar's bottom sat 16 px (the scroller's bottom padding) plus the dialog's own 24 px padding (sm:p-6, which the content'sp-0does not override fromsmup) plus 1 px border above the dialog's bottom: 41 px idle; the Create button 53 px (card: about 55). The sticky box also cannot leave its containing block (the form root), so anything in the scroll content past the root lifts it with the scroll: here the bar's ownafter:strip, 8 px (41 to 49 at the end). The card's 134 px at 条款 was not reproduced on showcase; it is the same mechanism with more content past the form root in that form.scrollTop0 with the first section marked "· 2" and the highlight still on the last section. Submitting 1200 ms after the click (the hold over) followed correctly, so the defect is the hold window.Verification
Merged head
d603500f44.git merge --no-ff origin/mainat7752cac7(23 commits behind) merged with no conflicts and no hand resolution;git show --remerge-diff d603500f44is empty, and the branch delta against origin/main is still exactly the 7 files of this change. On the merged head, afterpnpm install --frozen-lockfileand rebuilding the plugin-form^... closure (turbo, 52/52):pnpm --filter @object-ui/plugin-form run type-checkexit 0 (0error TS);vitest run packages/plugin-form/Test Files 237 passed (237), Tests 2658 passed | 1 skipped (lock VERDICT command-exit 0);overlap-checkclean exit 0 against origin/maind947a93cf8and 0 PR heads. The browser measurements below were taken on626ff4da2a; origin/main changed no file underui/packages/plugin-formin the merged range.Bar bottom to dialog bottom,
showcase_invoicecreate dialog (grouped as above), idle / mid-scroll / end:Reference: a dialog without a sub-table (
showcase_accountcreate) measures footer bottom to dialog bottom 25 px at 1280×900 (24 px padding + 1 px border), so 25 is "the dialog's padding" the card asks for; at phone width the sheet has no padding. The Create button now sits 37 px above the dialog bottom, the same as the flat arm's.Highlight, same dialog after the fix: click the last entry and submit at once: highlight on the first section (was: the last). Controls: click the second / last entry and wait 1500 ms: the highlight stays on the clicked entry; sampled every 50 ms through a jump from the top to the last entry (30 samples): only the clicked entry was ever highlighted.
Tests
subformHosts.test.tsx: a new top-leveldescribefor 带内嵌子表的表单弹窗:取消 / 创建下方留出一段空白;分组导航在校验跳回顶部后高亮不跟着变 #34819 pins the dialog frame: the bar is not sticky and paints noafter:strip, it is theshrink-0row right aftermd-form-body, no element between it and the dialog sets an overflow, the form root and the dialog frame areflex min-h-0 flex-1 flex-col, one Save and nomodal-form-footer; the same after toggling maximize. The 带内嵌子表的表单弹窗:取消 / 保存不固定在底部,长表单要滚到最下面才看得到 #34599 block keeps the drawer and page cases (sticky), and its dialog case moved into the new block because the structure it pinned is what this change replaces.FormSectionNav.test.tsx: a new top-leveldescribefor 带内嵌子表的表单弹窗:取消 / 创建下方留出一段空白;分组导航在校验跳回顶部后高亮不跟着变 #34819 on a fixture scroller with set geometry: a scroll back to the top inside the hold is followed when the hold ends; one after the hold is followed; CONTROL: the jump does not highlight the sections it passes (samples through the hold and after it); CONTROL: at the bottom of a short tail the clicked section keeps the highlight when the hold ends, and a hand scroll to the bottom still reads as the last section.Test and ablation readings (head 626ff4d)
vitest run packages/plugin-form/(whole package): Test Files 237 passed (237), Tests 2658 passed, 1 skipped; lock VERDICT command-exit 0.pnpm --filter @object-ui/plugin-form run type-check: exit 0, 0error TS;tsc -p tsconfig.test.json --listFilesOnlylists both edited test files.masterDetailFrame.tsclean.ablation-replace.mjs, markerABLATION-34819-A): 1 failed, "follows a scroll back to the top that lands inside the click hold, once the hold ends" (expected Section 0, received Section 2); restored, blob equals HEAD,git diff HEADempty.ABLATION-34819-B): 1 failed, the short-tail CONTROL (expected Section 2, received Section 3); restored to HEAD.ABLATION-34819-C): both 带内嵌子表的表单弹窗:取消 / 创建下方留出一段空白;分组导航在校验跳回顶部后高亮不跟着变 #34819 bar pins failed; restored to HEAD.ABLATION-34819-D): both 带内嵌子表的表单弹窗:取消 / 创建下方留出一段空白;分组导航在校验跳回顶部后高亮不跟着变 #34819 bar pins failed (stickyasserted false); restored to HEAD.Gates (head 626ff4d)
node scripts/pm/dispatch-gates.mjs --commandsderived 38 families from the 7-path change set; all 38 ran locally with exit 0 (each exit captured before any pipe), and--ranreconciled 38 derived, 38 run, 0 not measured, 0 unrun.node scripts/check-new-cross-file-line-citations.mjs: 0 new citations.overlap-check: clean exit 0 against origin/main and 0 PR heads, before each push. The full CI farm is CI's.Acceptance notes
sm:p-6fromMobileDialogContentbecause thep-0the dialog passes does not override a variant class; both arms draw inside that 24 px padding, and the header's ownsm:pt-6adds to it. Left as is: the card's target is the dialog's padding, which is this value.sticky top-0inside the body scroller, so content scrolls through the scroller's 16 px top padding above it (visible in the screenshots of both the old and the new layout). Not changed here.showcase_invoice; no committed example has a master-detail create dialog with two or more sections.Generated by Claude Code